package models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.criteria.Fetch;

import play.data.validation.MaxSize;
import play.db.jpa.Model;

@Entity
@Table(name="abouts")
public class About extends Model{

	/**
	 * 标题
	 */
	public String aboutTopic;
	
	/**
	 * 内容
	 */
	@MaxSize(value=3000)
	@Column(columnDefinition="Text")
	public String aboutContent;
	
	/**
	 * 地图
	 */
	@MaxSize(value=1000)
	@Column(columnDefinition="Text")
	public String aboutMapImages;
	
	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	public Date createDate = new Date(System.currentTimeMillis());
	
	public String toString(){
		return aboutTopic;
	}
	
}
